package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ fileName:Bookflat
 * @ description:
 * @ author:dzh
 * @ createTime:2022/5/8 22:04
 * @ version:1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookFlat {
    private Integer bfId;
    //平调金额
    private Double bfAmount;
    //平调数量
    private Integer bfQtySum;
    //原分店id
    private Integer storesId;
    //新分店id
    private Integer storesNid;
    //申请人
    private String bfMan;
    //申请时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date bfDate;
    //审核人
    private String bfAuditor;
    //审核日期
    private Date bfAuditDate;
    //平调状态（1.单个平调 2.批量）
    private Integer bfStatus;
    //审核状态（1.通过，2.审核中，3.驳回）
    private Integer bfAdtStatus;

    private String oldStoresName;

    private Stores stores;

    public BookFlat(Double bfAmount, Integer bfQtySum, Integer storesId, Integer storesNid, String bfMan) {
        this.bfAmount = bfAmount;
        this.bfQtySum = bfQtySum;
        this.storesId = storesId;
        this.storesNid = storesNid;
        this.bfMan = bfMan;
    }
}
